#define _CRT_SECURE_NO_WARNINGS 1

vector<int> reOrderArray(vector<int>& array) {

    // write code here

    int k = 0;
    for (int i = 0; i < array.size(); i++)
    {
        if (array[i] % 2 == 1)
        {
            int j = i;
            int tmp = array[i];
            while (j > k)
            {
                array[j] = array[j - 1];
                j--;
            }
            array[k++] = tmp;
        }
    }
    return array;
}
};